package vip.geeker.iotms.persistance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;
import vip.geeker.iotms.dto.DeviceInfoDto;
import vip.geeker.iotms.persistance.model.DeviceInfo;

import java.util.List;

public interface DeviceInfoMapper extends BaseMapper<DeviceInfo> {

    int deleteByPrimaryKey(Integer id);

    int insert(DeviceInfo record);

    int insertSelective(DeviceInfo record);

    DeviceInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DeviceInfo record);

    int updateByPrimaryKey(DeviceInfo record);

    List<DeviceInfo> queryList(DeviceInfo info);

    int nextVal();

    List<DeviceInfoDto> queryAnalysisRule(@Param("deviceNo") String deviceNo);

    List selectDeviceByData(@Param("dataName") String dataName);
}
